using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevProcessimTList, table list:dev_processim_t 
	/// </summary>
	internal class DevProcessimTList : BaseWritableEntities<DevProcessimT>, IDevProcessimTList
	{
		private DevProcessimTQueryDAO _queryDAO;
		private DevProcessimTWritingDAO _writeDAO;

		public DevProcessimTList(DevProcessimTQueryDAO queryDao, DevProcessimTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevProcessimT,table items:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessimT> GetDevProcessimTAllItems()
		{
			return _queryDAO.GetDevProcessimTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevProcessimT,table items:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessimT> GetDevProcessimTItemsById(int id)
		{
			return _queryDAO.GetDevProcessimTItemsById(id);
		}

		/// <summary>
		/// 根据groupId，获取所有DevProcessimT,table items:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessimT> GetDevProcessimTItemsByGroupId(int groupId)
		{
			return _queryDAO.GetDevProcessimTItemsByGroupId(groupId);
		}

		/// <summary>
		/// 增加一行DevProcessimT,table item:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevProcessimT(DevProcessimT item)
		{
			return this._writeDAO.AddDevProcessimT(item);
		}

		/// <summary>
		/// 增加多行DevProcessimT,table items:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevProcessimTs(DevProcessimT[] items)
		{
			return this._writeDAO.AddDevProcessimTs(items);
		}

		/// <summary>
		/// 更新一行DevProcessimT,table item:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevProcessimT(DevProcessimT item)
		{
			return this._writeDAO.UpdateDevProcessimT(item);
		}

		/// <summary>
		///  更新多行DevProcessimT,table items:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevProcessimTs(DevProcessimT[] items)
		{
			return this._writeDAO.UpdateDevProcessimTs(items);
		}

		/// <summary>
		/// 删除一行DevProcessimT,table item:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessimT(DevProcessimT item)
		{
			return this._writeDAO.DeleteDevProcessimT(item);
		}

		/// <summary>
		///  删除多行DevProcessimT,table items:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessimTs(DevProcessimT[] items)
		{
			return this._writeDAO.DeleteDevProcessimTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevProcessimT,table entity:dev_processim_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessimTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevProcessimTByIds(ids);
		}

	}
}
